﻿using UnityEngine;
using System.Collections;

public class NormalDepthRender : MonoBehaviour {

    public Shader normalDepthShader;
    private void Awake()
    {
        Shader.SetGlobalFloat("nearDepth", 0.3f);
        Shader.SetGlobalFloat("farDepth", 1000f);
        //GetComponent<Camera>().enabled = false;
        GetComponent<Camera>().SetReplacementShader(normalDepthShader, "NormalDepthRender");
    }
}
